class Demo:
    def __bool__(self):
        return False

    def greeting(self):
        print("Hello, my friend.")


demo = Demo()
print(bool(demo))
